﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GestionBudget.Objects;

namespace GestionBudget.Documentation
{
    public partial class FormConnexion : Form
    {
        public FormConnexion()
        {
            InitializeComponent();
        }

        private void cmdConnexion_Click(object sender, EventArgs e)
        {
            if (cmbUsername.SelectedValue != "")
            {
                Profil ProfileConnecte = DictionnaireDonnees.ListeProfils.First(pr => String. Concat(pr.Prenom, " " ,pr.Nom) == cmbUsername.SelectedText);
                Securite.ProfilCourant = ProfileConnecte;
            }
        }
    }
}
